//
//  File.swift
//  
//
//  Created by didi on 2022/9/8.
//

import Foundation

/// default error response object
public struct MError: Codable {

    /// error message
    public let message: String
    
    /// various error details about the underlying issue
    public let details: [ErrorDetail]
    
    /// init a new error object using a message and the details
    public init(message: String, details: [ErrorDetail]) {
        self.message = message
        self.details = details
    }
}
